from pts.models import VerCD

class VersionCD(object):
    
    @classmethod
    def create(cls,app,vercode='1.0'):
        VerCD.objects.get_or_create(app=app,vercode=vercode)
        

class QaCD(object):
    
    @classmethod
    def create(cls,version):
        #VerCD.objects.get_or_create(app=app,vercode=vercode)
        version.dev_code='DEV_OK'
        version.save()